if (native == NULL || GDK_WINDOW_DESTROYED (native))
return GDK_GRAB_NOT_VIEWABLE;
- gdk_wayland_seat_set_grab_window (wayland_seat, window);
+ gdk_wayland_seat_set_grab_window (wayland_seat, native);
wayland_seat->grab_time = evtime;
if (prepare_func)
{
GdkWindow *prev_focus = gdk_wayland_device_get_focus (wayland_seat->master_pointer);
- if (prev_focus != window)
+ if (prev_focus != native)
device_emit_grab_crossing (wayland_seat->master_pointer, prev_focus,
- window, GDK_CROSSING_GRAB, evtime);
+ native, GDK_CROSSING_GRAB, evtime);
_gdk_display_add_device_grab (display,
wayland_seat->master_pointer,
{
GdkWindow *prev_focus = gdk_wayland_device_get_focus (wayland_seat->touch_master);
- if (prev_focus != window)
+ if (prev_focus != native)
device_emit_grab_crossing (wayland_seat->touch_master, prev_focus,
- window, GDK_CROSSING_GRAB, evtime);
+ native, GDK_CROSSING_GRAB, evtime);
_gdk_display_add_device_grab (display,
wayland_seat->touch_master,
{
GdkWindow *prev_focus = gdk_wayland_device_get_focus (wayland_seat->master_keyboard);
- if (prev_focus != window)
+ if (prev_focus != native)
device_emit_grab_crossing (wayland_seat->master_keyboard, prev_focus,
- window, GDK_CROSSING_GRAB, evtime);
+ native, GDK_CROSSING_GRAB, evtime);
_gdk_display_add_device_grab (display,
wayland_seat->master_keyboard,
GdkWaylandTabletData *tablet = l->data;
GdkWindow *prev_focus = gdk_wayland_device_get_focus (tablet->master);
- if (prev_focus != window)
+ if (prev_focus != native)
device_emit_grab_crossing (tablet->master, prev_focus,
- window, GDK_CROSSING_GRAB, evtime);
+ native, GDK_CROSSING_GRAB, evtime);
_gdk_display_add_device_grab (display,
tablet->master,